Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods


ODObjectNameSpace

Superclasses
ODNameSpace --> ODObject
Subclasses
none

An object of the ODObjectNameSpace class is a collection of objects, each of which has a unique key to identify the object within the collection.

Description

An object name space allows a part to identify an object using a unique key, which can be passed easily between parts. A part can create an object name space to store a reference to a part object to facilitate communications with its embedded parts.

Your part can create objects of the ODObjectNameSpace class by calling the name-space manager's CreateNameSpace method (page 436), passing the constant kODNSDataTypeODObject for the type of the name space.

Object name spaces can be arranged hierarchically to allow you to search multiple object name spaces for a single key. Searches move from a child object name space to its parent object name space until the entry is found or until there are no more object name spaces to search.

Methods

This section presents summary descriptions of the ODObjectNameSpace methods, followed by detailed descriptions in alphabetical order.

CreateIterator
Creates an object iterator for the entries in this object name space.
GetEntry
Searches for an entry with the specified key and, if it exists, gets a reference to the object associated with that key.
Register
Adds a new entry to this object name space.

Methods
CreateIterator
GetEntry
Register

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help